package com.boboPlanet.user.feignApi;

import com.boboPlanet.comm.result.ResponseResult;
import com.boboPlanet.user.entity.dto.SysLogDTO;
import com.boboPlanet.user.entity.po.SysLogPO;
import com.boboPlanet.user.fallback.SysLogFallbackImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Description: TODO
 * @Author: mis_wu
 * @Date: 2023/2/25
 **/
@FeignClient(value = "${boboPlanet.base-dict-config-serve}",path = "/boboPlanetBaseDictConfigDev/sysLog",fallbackFactory = SysLogFallbackImpl.class )
public interface SysLogApi {

    @PostMapping("/addSysLog")
    ResponseResult<Boolean> addSysLog(@RequestBody SysLogDTO dto);

    @PostMapping("/querySysLog")
    ResponseResult<List<SysLogPO>> querySysLog(@RequestBody SysLogDTO dto);

}
